package com.atguigu.gmall.cart.service;

import com.atguigu.gmall.cart.entity.CartItem;
import com.atguigu.gmall.cart.vo.AddCartSuccessVo;

import java.util.List;

public interface CartService {

    public abstract AddCartSuccessVo addCart(Long skuId, Integer skuNum);

    public abstract List<CartItem> cartList();

    public abstract void addToCart(Long skuId, Integer skuNum);

    public abstract void checkCart(Long skuId, Integer isChecked);

    public abstract void deleteCart(Long skuId);

    public abstract void deleteCheckedCart();

    public abstract List<CartItem> findByUserId();
}
